package zone.haiwen.demo.util;

/**
 * Description 
 * @author zhangHaiWen
 * @data 1 20:08
 * @return 
 **/
public class JsonResult {
	private Object data;

	public JsonResult(ResultCode code, String data) {
		this.setCode();
		this.setMessage(code.msg());
		this.setData(data);
	}

	public JsonResult(ResultCode code, Object data) {
		this.setCode();
		this.setMessage(code.msg());
		this.setData(data);
	}

	public JsonResult(ResultCode success) {

	}

	public void setCode() {
	}

	public void setMessage(String message) {
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
